
<?php
class database {

public $Servidor = 'localhost';
public $Usuario ='Magsi';
public $Clave='magsi';
public $Basedato='magsi_db';



public function Conectar(){
$con = mysqli_connect($this->Servidor,$this->Usuario,$this->Clave,$this->Basedato) or die('error');
return $con;
}

 public function desconnectar()
 {
  mysql_close();
 }

}
?>
